package com.bank6677.sync.csm.domain.old;

import java.util.Date;

public class LoanSendFlow {
    private Long id;
    private Long applyId;
    private Integer sendAdminId;
    private Integer acceptAdminId;
    private Integer isValid;
    private Date createDt;
    private Date updateDt;
    private Integer type;
    private String serviceInstitutionId;
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getApplyId() {
        return applyId;
    }

    public void setApplyId(Long applyId) {
        this.applyId = applyId;
    }

    public Integer getSendAdminId() {
        return sendAdminId;
    }

    public void setSendAdminId(Integer sendAdminId) {
        this.sendAdminId = sendAdminId;
    }

    public Integer getAcceptAdminId() {
        return acceptAdminId;
    }

    public void setAcceptAdminId(Integer acceptAdminId) {
        this.acceptAdminId = acceptAdminId;
    }

    public Integer getIsValid() {
        return isValid;
    }

    public void setIsValid(Integer isValid) {
        this.isValid = isValid;
    }

    public Date getCreateDt() {
        return createDt;
    }

    public void setCreateDt(Date createDt) {
        this.createDt = createDt;
    }

    public Date getUpdateDt() {
        return updateDt;
    }

    public void setUpdateDt(Date updateDt) {
        this.updateDt = updateDt;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getServiceInstitutionId() {
        return serviceInstitutionId;
    }

    public void setServiceInstitutionId(String serviceInstitutionId) {
        this.serviceInstitutionId = serviceInstitutionId == null ? null : serviceInstitutionId.trim();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (!(that instanceof LoanSendFlow)) {
            return false;
        }
        LoanSendFlow other = (LoanSendFlow) that;
        return this.getId() == null ? other == null : this.getId().equals(other.getId())
            && this.getApplyId() == null ? other == null : this.getApplyId().equals(other.getApplyId())
            && this.getSendAdminId() == null ? other == null : this.getSendAdminId().equals(other.getSendAdminId())
            && this.getAcceptAdminId() == null ? other == null : this.getAcceptAdminId().equals(other.getAcceptAdminId())
            && this.getIsValid() == null ? other == null : this.getIsValid().equals(other.getIsValid())
            && this.getCreateDt() == null ? other == null : this.getCreateDt().equals(other.getCreateDt())
            && this.getUpdateDt() == null ? other == null : this.getUpdateDt().equals(other.getUpdateDt())
            && this.getType() == null ? other == null : this.getType().equals(other.getType())
            && this.getServiceInstitutionId() == null ? other == null : this.getServiceInstitutionId().equals(other.getServiceInstitutionId());
    }

    @Override
    public int hashCode() {
        int hash = 23;
        if (getId() != null) {
            hash *= getId().hashCode();
        }
        if (getApplyId() != null) {
            hash *= getApplyId().hashCode();
        }
        if (getSendAdminId() != null) {
            hash *= getSendAdminId().hashCode();
        }
        if (getAcceptAdminId() != null) {
            hash *= getAcceptAdminId().hashCode();
        }
        if (getIsValid() != null) {
            hash *= getIsValid().hashCode();
        }
        if (getCreateDt() != null) {
            hash *= getCreateDt().hashCode();
        }
        if (getUpdateDt() != null) {
            hash *= getUpdateDt().hashCode();
        }
        if (getType() != null) {
            hash *= getType().hashCode();
        }
        if (getServiceInstitutionId() != null) {
            hash *= getServiceInstitutionId().hashCode();
        }
        return hash;
    }
}